home *** CD-ROM | disk | FTP | other *** search
- option base 0
- screen 12
- line (0,0)-(640,480),15,bf
- open "c:\grin\wohnumge\set8x16.chs" for binary as #1
- for j=20 to 200 step 10
- call WriteString("Hallo, dies ist ein Test !!!",20,j)
- next
- close #1
- end
-
- sub WriteString(tex$,x,y) static
- xx=x
- for i=1 to len(tex$)
- call WriteChar(asc(mid$(tex$,i,1)),xx,y)
- xx=xx+8
- next
- end sub
-
- sub WriteChar(num,xx,yy) static
- dim byte$(20)
-
- num=num-32
- seek #1,(num*8*2)
-
- for r=1 to 8
- get$ #1,2,byte$(r)
- next
-
- for y=1 to 8
- t=cvi(byte$(y))
- for x=0 to 7
- c=t and (2^x)
- if c=(2^x) then c=0 else c=15
- pset ((xx-x),y+yy),c
- next
- next
- end sub
-